﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace test._99_test.time._2012_03_26_142734
{
    public partial class Form_key : Form
    {
        public Form_key()
        {
            InitializeComponent();
        }

        private void Form_key_KeyDown(object sender, KeyEventArgs e)
        {
            this.richTextBox1.Text = e.KeyCode.ToString();
        }

        private void Form_key_Load(object sender, EventArgs e)
        {
            this.KeyPreview = true; 
        }
    }
}
